import java.awt.BorderLayout;
import java.awt.Dimension;
import java.awt.Graphics;
import java.awt.Graphics2D;
import java.awt.geom.Rectangle2D;

import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.SwingUtilities;


public class Character {
	public static void main(String ... args) {
		final JFrame frame = new JFrame("Character test");
		World world = new World();
		
		frame.add(world, BorderLayout.CENTER);
		//frame.setContentPane(world);
		frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		
		SwingUtilities.invokeLater(new Runnable() {
			@Override
			public void run() {
				frame.pack();
				frame.setVisible(true);
			}
		});
	}
	
	public void draw(Graphics2D g) {
	}
	
	static class World extends JPanel {
		public World() {
			super();
			
			this.setPreferredSize(new Dimension(500, 500));
			//this.setSize(500, 500);
		}
		
		@Override
		public void paint(Graphics g) {
			super.paint(g);
		}
	}
}
